<template>
	<view>
		<view class="announcement">
			<view class="announcement-two" v-for="(item,index) in artists"
			 :key="index">
				<view>{{item.title}}</view>
				<view>
					<image src="../../../static/assert/more-icon.png" mode=""></image>
				</view>
				<view>{{item.content}}</view>
				<view>{{item.createTime}}</view>
			</view>
			
		</view>
	</view>
</template>


<script>
	import request from '@/utils/request';
	import {mapState } from 'vuex';
	import { toast } from '@/utils/toast';
	export default {
		data() {
			return {
				artists: [],
				
			};
		},
		

		
		computed:{
			...mapState(['lang'])
		},
		created() {
			this.aaa();
			this.eliminate()
		},
		methods: {
			// 语言
			aaa(){
				 uni.setNavigationBarTitle({
				     title:this.lang.announcement
				 });
			},
			
			
			
		eliminate() {
			request('/infos/notice/getlist', 'POST', {
				
			}).then(res => {
				console.log(res.data,11)
				if (res.data.ResultCD == 'I001') {
					
				} else {
					toast(res.data.ErrorMsg);
				}
			});
			},
		}
	}
</script>

<style lang="scss" scoped>
	.announcement {
		padding: 0 29upx;

		.announcement-two {
			width: 100%;
			height: 100%;
			border-bottom: 1upx solid #E6E6E6;
			padding-top: 30upx;
			padding-bottom: 20upx;

			&>view:nth-child(1) {
				font-size: 30upx;
				font-family: PingFang-SC-Medium;
				font-weight: 500;
				color: rgba(51, 51, 51, 1);
			}

			&>view:nth-child(2) image {
				float: right;
				clear: both;
				width: 16upx;
				height: 30upx;
			}

			&>view:nth-child(3) {
				font-size: 24upx;
				font-family: PingFang-SC-Regular;
				font-weight: 400;
				color: rgba(153, 153, 153, 1);
				margin-top: 19upx;
			}
		}
	}

	.loading {
		font-size: 30upx;
		font-family: PingFang-SC-Regular;
		font-weight: 400;
		color: rgba(153, 153, 153, 1);
		margin-top: 19upx;
		text-align: center;
	}
</style>
